package com.hula.onion.book.server.dao;



import com.hula.onion.book.server.model.User;

/**
 * Created by shan on 18/1/24.
 */
public interface IUserDao {
    User getUserByOpendId(String openId,int source);

    boolean updateUser(String nickName, String headPic, int userId,int source);

    int register(String nickName, String headPic, String openId,int source);

    boolean register(String mobile, String password);

    boolean updatePassword(String mobile, String newPassword);

    boolean changePasswordByUid(int userId, String newPassword);

    String getPasswordByUid(int userId);

    User getUserByMobile(String mobile);

    User getUserByUserId(int userId);

    boolean mobileExist(String mobile);

    boolean bindPhone(int userId, String mobile, String password);

    boolean bindThird(int userId,String openId,String nickName, String headPic,int source);

    boolean createFeedBack(int userId, String message);

}
